﻿using MES.Desktop.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MES.Desktop.IService
{
    public interface IUserService
    {
        UserEntity Login(string username, string password);

        bool UpdatePassword(int id, string opd, string npd);

        PageEntity<UserEntity[]> GetUsers(string key, string[] ds, string[] ps, int index, int size);
        UserEntity[] GetUsersByIds(int[] ids);

        int UpdateUser(UserEntity entity);

        int DeleteUser(int[] ids);

        bool LockUser(int id, int status);

        bool CheckUserName(string username, int id);

        int SaveUserRoles(RoleUserEntity[] roleUsers);

        int ResetPassword(int id);
    }
}
